<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片墙 - Image Wall</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <header>
        <h1>图片墙</h1>
        <div class="controls">
            <input type="text" id="directoryInput" placeholder="输入图片目录路径 (可选)" />
            <button id="loadImages">加载图片</button>
            <button id="refreshImages">刷新</button>
        </div>
        <div class="info">
            <span id="imageCount">0 张图片</span>
        </div>
    </header>

    <main>
        <div id="loading" class="loading hidden">
            <div class="spinner"></div>
            <p>正在加载图片...</p>
        </div>
        
        <div id="imageWall" class="image-wall">
            <!-- Images will be loaded here dynamically -->
        </div>
        
        <div id="noImages" class="no-images hidden">
            <h2>没有找到图片</h2>
            <p>请在 'images' 目录中放置图片文件，或指定其他目录路径</p>
            <p>支持的格式: PNG, JPG, JPEG, GIF, BMP, WEBP</p>
        </div>
    </main>

    <!-- Image Modal -->
    <div id="imageModal" class="modal hidden">
        <div class="modal-content">
            <span class="close">&times;</span>
            <img id="modalImage" src="" alt="">
            <div class="modal-info">
                <h3 id="modalTitle"></h3>
                <p id="modalDetails"></p>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
